package com.party.core.dao.read.logistics;

import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.logistics.WlLogisticsTrace;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: Administrator.
 * @Description: 物流追踪信息
 * @Date:Created in 2017/9/25 0025 上午 11:21.
 */
@Repository
public interface WlLogisticsTraceReadDao extends BaseReadDao<WlLogisticsTrace> {
    /**
     * 根据物流id获取物流追踪信息
     *
     * @param logisticsId 物流id
     * @return
     */
    List<WlLogisticsTrace> findByLogisticsId(String logisticsId);

    /**
     * 获取最新的物流追踪信息
     *
     * @param logisticsId 物流编号
     * @return
     */
    WlLogisticsTrace getBestNewTrace(String logisticsId);
}
